package com.zh.demo.controller;


import com.zh.demo.service.IDyInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yufei
 * @since 2019-11-23
 */
@RestController
@RequestMapping("/dyinfo")
@Slf4j
public class DyInfoController {


    @Autowired
    private IDyInfoService dyInfoService;

    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public void addUser(@RequestParam("info") String jsonInfo) {
        dyInfoService.add(jsonInfo);
    }

}
